<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
<div class="c-left left-menu">
	<div class="panel-group">
		<c:forEach items="${userMenu}" var="item">
		<div class="panel panel-success center">
			<div class="panel-heading <c:if test="${param.first == item.menuId}">panel-select</c:if>">
				<h4 class="panel-title text-center">
					<c:choose>
					<c:when test="${item.url!=null && item.url!=''}"><a href="${webroot}${item.url}"><span class="${item.icon}"></span> ${item.name}</a></c:when>
					<c:otherwise>
					<a data-toggle="collapse" href="#mlCollapse${item.menuId}"><span class="${item.icon}"></span> ${item.name} <span class="caret"></span></a>
					</c:otherwise>
					</c:choose>
				</h4>
			</div>
			<div id="mlCollapse${item.menuId}" class="panel-collapse collapse <c:if test="${param.first == item.menuId}">in</c:if>">
				<div class="panel-body">
					<c:forEach items="${item.cldMenus}" var="cldItem">
					<c:if test="${cldItem.type==0}">
					<div>
						<a class="btn btn-<c:choose><c:when test="${param.second == cldItem.menuId}">select</c:when><c:otherwise>link</c:otherwise></c:choose> btn-block" href="${webroot}${cldItem.url}">${cldItem.name}</a>
					</div>
					</c:if>
					</c:forEach>
				</div>
			</div>
		</div>
		
		</c:forEach>
		
		<div style="height: 60px;">&nbsp;</div>
	</div>
</div>